function getPathValue()
{	
	var headings = document.evaluate("%1", document, null, XPathResult.ANY_TYPE, null);
	var thisHeading = headings.iterateNext();
	var alertText = "";
	while (thisHeading)
	{
		alertText += thisHeading.textContent + "\n";
		thisHeading = headings.iterateNext();
	}
	return alertText;
}
getPathValue();